home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 4 / Amiga Tools 4.iso / grafix / raytracing / raystorm / examples / arexx / title.ray < prev    next >
Encoding:
Text File  |  1996-02-26  |  910 b   |  53 lines

  1. /***************
  2.  * NAME:          title.ray
  3.  * VERSION:       1.0 21.07.1995
  4.  * DESCRIPTION:   This ARexx-programm renders the RayStorm title
  5.  *    AUTHORS:            Andreas Heumann
  6.  * BUGS:          none
  7.  * TO DO:         none
  8.  * HISTORY:
  9.  *    DATE        NAME    COMMENT
  10.  *      21.07.95    ah        initial release
  11.  ***************/
  12.  
  13. signal on error
  14.  
  15. options results
  16.  
  17. IF ~show('P','RAYSTORM') THEN DO
  18.     address COMMAND 'run >NIL: <NIL: /RayStorm'
  19.     address COMMAND WaitForPort RAYSTORM
  20. END  
  21.  
  22. address RAYSTORM
  23.  
  24. 'OBJECTPATH /objects'
  25. 'BRUSHPATH /brushes'
  26.  
  27. 'SETSCREEN 160 128'
  28. 'SETCAMERA <0,0,-700> <0,0,0> <0,1,0> 56.25 45'
  29. 'SETWORLD [0,0,0] REFLMAP=reflectionmap.iff'
  30. 'POINTLIGHT <0,0,-700>'
  31.  
  32. 'NEWSURFACE BACK'
  33. 'DIFFUSE [100,140,200]'
  34. 'SPECULAR [0,0,0]'
  35.  
  36. 'PLANE BACK <0,0,180> <0,0,1>'
  37.  
  38. 'LOADOBJ title.iob'
  39.  
  40. 'STARTRENDER'
  41.  
  42. 'SAVEPIC title.iff'
  43.  
  44. 'CLEANUP'
  45.  
  46. exit 0
  47.  
  48. error:
  49. say "Error" rc "in line" sigl ":"
  50. GETERRORSTR rc
  51. say result
  52. exit 0
  53.